home *** CD-ROM | disk | FTP | other *** search
INI File | 1992-11-18 | 11.6 KB | 782 lines |
- [ver]
- 4
- [sty]
- _macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [port]
- LPT1:
- [lang]
- 1
- [desc]
- Permite examinar los archivos que componen un documento maestro.
- Lotus Word Processing Division
- Advanced
- Define, MasterDoc
- autorun
- 717188745
- 17
- 676166658
- 162
- 5
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [GramStyle]
-
- [ParaNum]
- 1
- [tag]
- Est<\a>ndar
- 5
- [fnt]
- Tms Rmn
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 0
- 0
- 0
- [spc]
- 17
- 0
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
-
- 0
- 1
- 1
- 0
- 0
- 0
- 0
- [nfmt]
- 24
- 1
- 2
- ,
- .
- Pts
- Est<\a>ndar
- 0
- 0
- [tag]
- Standard
- 6
- [fnt]
- Tms Rmn
- 240
- 0
- 49152
- [algn]
- 1
- 1
- 0
- 0
- 0
- [spc]
- 17
- 0
- 1
- 0
- 0
- 1
- 100
- [brk]
- 4
- [line]
- 8
- 0
- 1
- 0
- 1
- 1
- 1
- 10
- 10
- 1
- [spec]
- 0
- 0
-
- 0
- 1
- 0
- 0
- 0
- 0
- 0
- [nfmt]
- 24
- 1
- 2
- ,
- .
- Pts
- Standard
- 0
- 0
- [l1]
- 0
- [pg]
- 5
- 40 0 17 512 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
- 82 0 17 512 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
- 130 0 15 64 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
- 136 0 5 512 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
- 163 0 0 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
- [edoc]
- <:#558,9025>' Master File Browser - these macros will allow the user to "Next" and "Prev" through the files
-
- <:#279,9025>' of a master document. We add a cascading menu off the file menu. Here they can "INIT" ,
-
- <:#279,9025>' Next and Prev.
-
- <:#279,9025>' We keep the filenames in a global array.
-
- <:#279,9025>
-
- <:#279,9025>DEFINE GlobID "MasterFiles"
-
- <:#279,9025>DEFINE GlobIDC "MasterCount"
-
- <:#279,9025>DEFINE GetFile(which) GetGlobalArray$(GlobID, %1)
-
- <:#279,9025>DEFINE MaxID() GetGlobalArray$(GlobIDC, 1)
-
- <:#279,9025>DEFINE SetMaxID(max) SetGlobalArray(GlobIDC, 1, %1)
-
- <:#279,9025>DEFINE SetFile(index, name) SetGlobalArray(GlobID, %1, %2)
-
- <:#279,9025>declare AlreadyOpened(p1)
-
- <:#279,9025>Declare OpenOne(p1)
-
- <:#279,9025>
-
- <:#279,9025>' AddOurMenu - This just adds us to the menu
-
- <:#279,9025>
-
- @Function@<:#293,9025>FUNCTION AddOurMenu()
-
- <:#279,9025>IF IsNewWave()
-
- <:#279,9025> Message("Macro no disponible si se ejecuta en HP NewWave.")
-
- <:#279,9025> Exit Function
-
- <:#279,9025>ENDIF
-
- <:#279,9025>'singlestep(0)
-
- <:#279,9025>AllocGlobalVar("Init",1)
-
- <:#279,9025>SetGlobalVar("Init",0)
-
- <:#279,9025>
-
- <:#279,9025>menu = "&Archivo"; ' Which menu
-
- <:#279,9025>submenu = "E&xaminar doc. maestro"; ' Our name
-
- <:#279,9025>DeleteMenu(1, menu, Submenu); ' Delete old if there
-
- <:#279,9025>
-
- <:#279,9025>InsertCascadeMenu(1, menu, 8, submenu)
-
- <:#279,9025>
-
- <:#279,9025>InitMac = StrCat$(GetRunningMacroFile$(), "!OpenMaster")
-
- <:#558,9025>AddCascadeMenuItem(1, menu, submenu, "&Comenzar", InitMac, "Comienza a examinar un documento maestro")
-
- <:#279,9025>
-
- <:#279,9025>NextMac = StrCat$(GetRunningMacroFile$(), "!NextMaster")
-
- <:#558,9025>AddCascadeMenuItem(1, menu, submenu, "&Siguiente", NextMac, "Examina el siguiente archivo del documento maestro")
-
- <:#279,9025>
-
- <:#279,9025>PrevMac = StrCat$(GetRunningMacroFile$(), "!PrevMaster")
-
- AddCascadeMenuItem(1, menu, submenu, "&Anterior", PrevMac, "Examina el archivo anterior del documento maestro")
-
- END FUNCTION<:p<* >>
-
- <:#279,9025>
-
- <:#558,9025>' OpenMaster - Get the list of files for a master document, then load them into the global array
-
- <:#279,9025>
-
- @Function@<:#293,9025>FUNCTION OpenMaster()
-
- <:#279,9025>'singlestep(0)
-
- <:#279,9025>defstr mascount;
-
- <:#279,9025>if (0 = Assign(&mascount, GetMasterFilesCount()))
-
- message("El archivo actual no es un documento maestro.")
-
- <:#279,9025> return -1;
-
- <:#279,9025>endif
-
- <:#279,9025>AllocGlobalVar(GlobID, mascount) ' Where we keep the names
-
- <:#279,9025>AllocGlobalVar(GlobIDC, 1) ' How we know how many
-
- <:#279,9025>SetGlobalVar("Init",1)
-
- <:#279,9025>dim masfiles(mascount) ' load our local array
-
- <:#279,9025>GetMasterFiles(&masfiles) ' then transfer them to the
-
- <:#279,9025>for i = 1 to mascount ' Global array
-
- <:#279,9025> SetFile(i, UCase$(masfiles(i))) ' Upper case all for compares later
-
- <:#279,9025>next
-
- <:#279,9025>SetMaxID(mascount)
-
- <:#279,9025>
-
- <:#279,9025>' Now load the first master file.
-
- <:#279,9025>
-
- <:#279,9025>fname = masfiles(1)
-
- <:#279,9025>if (AlreadyOpened(fname))
-
- <:#279,9025> SelectWindow(fname)
-
- <:#279,9025>else
-
- <:#279,9025> OpenOne(masfiles(1))
-
- <:#279,9025>endif
-
- <:#279,9025>END FUNCTION
-
- <:#279,9025>
-
- <:#279,9025>' IsCurrentAMaster - is the active window one of the master files?
-
- <:#279,9025>' RETURN 0 if not one of the master files otherwise its ordered number
-
- <:#279,9025>
-
- @Function@<:#293,9025>FUNCTION IsCurrentAMaster()
-
- <:#279,9025>cur = UCase$(GetOpenFileName$()) ' Upper case the current
-
- <:#279,9025>for i = 1 to MaxID() ' Run though all master files
-
- <:#279,9025> if (cur = GetFile(i)) ' Found one?
-
- <:#279,9025> return i ' Yes, return its index
-
- <:#279,9025> endif
-
- <:#279,9025>next
-
- <:#279,9025>return 0; ' Not found.
-
- END FUNCTION<:p<* >>
-
- <:#279,9025>
-
- <:#558,9025>' NextMaster - Called from the menu. Get the active window's file, determine if its part of the
-
- <:#279,9025>' master file, if so either open or select the next file.
-
- <:#279,9025>'
-
- @Function@<:#293,9025>FUNCTION NextMaster()
-
- <:#279,9025>Declare AlreadyOpened(p1)
-
- <:#279,9025>InitStat = GetGlobalVar$("Init")
-
- <:#279,9025>If InitStat = 0
-
- Message("Seleccione la funci<\s>n Comenzar")
-
- <:#279,9025> Exit Function
-
- <:#279,9025>Endif
-
- <:#279,9025>id = IsCurrentAMaster() ' The active window part of master document?
-
- <:#279,9025>if (0 != id AND id << MaxID())
-
- <:#279,9025>
-
- <:#279,9025> ' NOTE the parentheses around the id + 1, is required for the define's parameter
-
- <:#279,9025> ' substitution. Without the parentheses there would be 3 parameters, not 1!
-
- <:#279,9025>
-
- <:#279,9025> fname = GetFile((id + 1)) ' Get the next one
-
- <:#279,9025> if NOT AlreadyOpened(fname) ' If its not opened
-
- <:#279,9025> OpenOne(fname) ' Open it
-
- <:#279,9025> else
-
- <:#279,9025> SelectWindow(fname) ' Otherwise just select it
-
- <:#279,9025> endif
-
- <:#279,9025>elseif (0 = id)
-
- Message("El archivo actual no forma parte del documento maestro seleccionado.")
-
- <:#279,9025>else
-
- Message("No hay m<\a>s archivos.")
-
- <:#279,9025>endif
-
- <:#279,9025>END FUNCTION
-
- <:#279,9025>
-
- <:#279,9025>' PrevMaster - select the previous file.
-
- <:#279,9025>
-
- @Function@<:#293,9025>FUNCTION PrevMaster()
-
- <:#279,9025>InitStat = GetGlobalVar$("Init")
-
- <:#279,9025>If InitStat = 0
-
- Message("Seleccione la funci<\s>n Comenzar")
-
- <:#279,9025> Exit Function
-
- <:#279,9025>Endif
-
- <:#279,9025>
-
- <:#279,9025>id = IsCurrentAMaster()
-
- <:#279,9025>if (id <;> 1)
-
- <:#279,9025> fname = GetFile((id - 1))
-
- <:#279,9025> if NOT AlreadyOpened(fname)
-
- <:#279,9025> OpenOne(fname)
-
- <:#279,9025> else
-
- <:#279,9025> SelectWindow(fname)
-
- <:#279,9025> endif
-
- <:#279,9025>elseif (0 = id)
-
- Message("El archivo actual no forma parte del documento maestro seleccionado.")
-
- <:#279,9025>else
-
- Message("Este es el primer archivo del documento maestro.")
-
- <:#279,9025>endif
-
- <:#279,9025>END FUNCTION
-
- <:p<* >>
-
- <:#240,9360>' AlreadyOpened - is the passed file already open?
-
- <:#240,9360>' RETURN TRUE is so.
-
- <:#240,9360>
-
- @Function@<:#240,9360>FUNCTION AlreadyOpened(fname)
-
- <:#240,9360>filecnt = GetOpenFileCount()
-
- <:#240,9360>dim files(filecnt)
-
- <:#240,9360>GetOpenFileNames(&files) ' Get the list of files
-
- <:#240,9360>for i = 1 to filecnt
-
- <:#240,9360> if (fname = files(i)) ' match?
-
- <:#240,9360> return 1; ' Is is open.
-
- <:#240,9360> endif
-
- <:#240,9360>next
-
- <:#240,9360>return 0; ' No open
-
- <:#240,9360>END FUNCTION
-
- <:#240,9360>
-
- <:#480,9360>' OpenOne - Open a file, give it its own window, if we dont already have 9 open.
-
- <:#240,9360>
-
- @Function@<:#240,9360>FUNCTION OpenOne(fname)
-
- <:#240,9360>cnt = GetOpenFileCount()
-
- <:#240,9360>if (cnt << 9)
-
- <:#240,9360> openopt = 1
-
- <:#240,9360>else
-
- <:#240,9360> openopt = 129
-
- <:#240,9360>endif
-
- <:#240,9360>FileOpen(fname, openopt, "")
-
- <:#240,9360>END FUNCTION
-
- <:#284,9360>
-
- >
-
- [Embedded]
- 00008771
- >
- [macsum] 7
- AddOurMenu 0 0 6 16
- OpenMaster 646 0 5 43
- IsCurrentAMaster 1178 0 3 73
- NextMaster 1440 0 4 86
- PrevMaster 1975 0 4 114
- AlreadyOpened 2492 1 4 139
- OpenOne 2722 1 3 153
- [macse]
- 14 AddOurMenu
- 0 1317
- 13
- 11 00000108
- 0 3 "Macro no disponible si se ejecuta en HP NewWave."
- 6 0
- 15
- 9
- 0 271 "Init" 1
- 0 264 "Init" 0
- 7 "&Archivo"
- 8 1
- 7 "E&xaminar doc. maestro"
- 8 2
- 0 521 1 "{1}" "{2}"
- 0 528 1 "{1}" 8 "{2}"
- 0 802
- 13
- 0 16 [X] "!OpenMaster"
- 13
- 8 3
- 0 525 1 "{1}" "{2}" "&Comenzar" "{3}" "Comienza a examinar un documento maestro"
- 0 802
- 13
- 0 16 [X] "!NextMaster"
- 13
- 8 4
- 0 525 1 "{1}" "{2}" "&Siguiente" "{4}" "Examina el siguiente archivo del documento maestro"
- 0 802
- 13
- 0 16 [X] "!PrevMaster"
- 13
- 8 5
- 0 525 1 "{1}" "{2}" "&Anterior" "{5}" "Examina el archivo anterior del documento maestro"
- 6 0
- 15
- 9
- 14 OpenMaster
- 5 0
- 0 1047
- 13
- 0 805 &1 [X]
- 13
- 18 0
- 11 00000135
- 0 3 "El archivo actual no es un documento maestro."
- 5 -1
- 15
- 9
- 0 271 "MasterFiles" "{1}"
- 0 271 "MasterCount" 1
- 0 264 "Init" 1
- 6 1
- 21 2 [X]
- 0 1048 &2
- 5 1
- 8 3
- 6 1
- 6 3
- 18 2
- 12 00000312
- 10 00000381
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000237
- 6 3
- 22 2
- 0 18 [X]
- 13
- 0 272 "MasterFiles" "{3}" [X]
- 10 00000279
- 0 272 "MasterCount" 1 "{1}"
- 5 1
- 22 2
- 8 4
- 16 AlreadyOpened "{4}"
- 13
- 11 00000493
- 0 796 "{4}"
- 10 00000520
- 5 1
- 22 2
- 16 OpenOne [X]
- 6 0
- 15
- 9
- 14 IsCurrentAMaster
- 0 267
- 13
- 0 18 [X]
- 13
- 8 1
- 5 1
- 8 2
- 0 273 "MasterCount" 1
- 13
- 6 2
- 18 2
- 12 00000158
- 10 00000238
- 5 1
- 6 2
- 3 0
- 8 2
- 10 00000061
- 6 1
- 0 273 "MasterFiles" "{2}"
- 13
- 18 0
- 11 00000225
- 6 2
- 15
- 9
- 10 00000125
- 5 0
- 15
- 9
- 6 0
- 15
- 9
- 14 NextMaster
- 0 265 "Init"
- 13
- 8 1
- 6 1
- 5 0
- 18 0
- 11 00000120
- 0 3 "Seleccione la funci<\s>n Comenzar"
- 6 0
- 15
- 9
- 16 IsCurrentAMaster
- 13
- 8 2
- 5 0
- 6 2
- 18 1
- 6 2
- 0 273 "MasterCount" 1
- 13
- 18 5
- 1 1
- 11 00000374
- 6 2
- 5 1
- 3 0
- 0 273 "MasterFiles" [X]
- 13
- 8 3
- 16 AlreadyOpened "{3}"
- 13
- 1 3
- 11 00000348
- 16 OpenOne "{3}"
- 10 00000361
- 0 796 "{3}"
- 10 00000523
- 5 0
- 6 2
- 18 0
- 11 00000492
- 0 3 "El archivo actual no forma parte del documento maestro seleccionado."
- 10 00000523
- 0 3 "No hay m<\a>s archivos."
- 6 0
- 15
- 9
- 14 PrevMaster
- 0 265 "Init"
- 13
- 8 1
- 6 1
- 5 0
- 18 0
- 11 00000120
- 0 3 "Seleccione la funci<\s>n Comenzar"
- 6 0
- 15
- 9
- 16 IsCurrentAMaster
- 13
- 8 2
- 6 2
- 5 1
- 18 3
- 11 00000331
- 6 2
- 5 1
- 3 1
- 0 273 "MasterFiles" [X]
- 13
- 8 3
- 16 AlreadyOpened "{3}"
- 13
- 1 3
- 11 00000305
- 16 OpenOne "{3}"
- 10 00000318
- 0 796 "{3}"
- 10 00000505
- 5 0
- 6 2
- 18 0
- 11 00000449
- 0 3 "El archivo actual no forma parte del documento maestro seleccionado."
- 10 00000505
- 0 3 "Este es el primer archivo del documento maestro."
- 6 0
- 15
- 9
- 14 AlreadyOpened
- 0 1050
- 13
- 8 2
- 6 2
- 21 3 [X]
- 0 1051 &3
- 5 1
- 8 4
- 6 2
- 6 4
- 18 2
- 12 00000146
- 10 00000206
- 5 1
- 6 4
- 3 0
- 8 4
- 10 00000071
- 6 0
- 6 4
- 22 3
- 18 0
- 11 00000193
- 5 1
- 15
- 9
- 10 00000113
- 5 0
- 15
- 9
- 6 1
- 15
- 9
- 14 OpenOne
- 0 1050
- 13
- 8 2
- 6 2
- 5 9
- 18 5
- 11 00000081
- 5 1
- 8 3
- 10 00000093
- 5 129
- 8 3
- 2 102 1 "{0}" "{3}" ""
- 6 1
- 15
- 9
- 00008796
-